package com.bis.ymyy.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("用户类")
public class User implements Serializable {
    @ApiModelProperty("id")
    private Integer userId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("姓名")
    private String realName;
    private String phone;
    private String card;
    private String gender;
    private String age;
    private int firstPin;
    private int secondPin;
    private String address;
    private String permissions;
    private String avatar;

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", realName='" + realName + '\'' +
                ", phone='" + phone + '\'' +
                ", card='" + card + '\'' +
                ", gender='" + gender + '\'' +
                ", age='" + age + '\'' +
                ", firstPin=" + firstPin +
                ", secondPin=" + secondPin +
                ", address='" + address + '\'' +
                ", permissions='" + permissions + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
